﻿using EFCore.Model;
using Microsoft.EntityFrameworkCore;

namespace EFCore.Context
{
    public class SeckillContext : DbContext
    {
        public SeckillContext(DbContextOptions<SeckillContext> dbContextOptions) : base(dbContextOptions)
        {

        }

        /// <summary>
        /// 秒杀集合
        /// </summary>
        public DbSet<Seckill> Seckills { get; set; }

        /// 秒杀记录集合
        /// </summary>
        public DbSet<SeckillRecord> SeckillRecords { get; set; }

        /// <summary>
        /// 秒杀时间集合
        /// </summary>
        public DbSet<SeckillTimeModel> SeckillTimeModels { get; set; }
    }
}
